import request from "@/utils/request"
//获取轮播图列表
export const getBannerList = (params: any) => {
    return request({
        url: '/marketers/banner/list',
        method: 'get',
        params: params
    })
}
//获取轮播图详细
export const getBanner = (bannerId: number) => {
    return request({
        url: `/marketers/banner/${bannerId}`,
        method: 'get'
    })
}
//添加轮播图
export const addBanner = (data: object) => {
    return request({
        url: '/marketers/banner/add',
        method: 'post',
        data: data
    })
}
//修改轮播图
export const upBanner = (data: object) => {
    return request({
        url: '/marketers/banner/up',
        method: 'put',
        data: data
    })
}
//删除轮播图
export const deleteBanner = (bannerIds: number[]) => {
    return request({
        url: `/marketers/banner/${bannerIds}`,
        method: 'delete'
    })
}